# 抽象的父类设计标准 AC 抽象统一方法: cool_wind, hot_wind, swing_l_r
# 具体的子类实现标准 XiaoMi_AC GREE_AC Midea_AC

class AC(object):
    def cool_wind(self):
        """制冷"""
        pass

    def hot_wind(self):
        """制热"""
        pass

    def swing_l_r(self):
        """左右摆风"""
        pass


class XiaoMi_AC(AC):
    def cool_wind(self):
        print("小米空调制冷")


    def hot_wind(self):
        print("小米空调制热")


    def swing_l_r(self):
        print("小米空调左右摆风")


class GREE_AC(AC):
    def cool_wind(self):
        print("格力空调制冷")


    def hot_wind(self):
        print("格力空调制热")


    def swing_l_r(self):
        print("格力空调左右摆风")


def make_cook(ac: AC):
    ac.cool_wind()


if __name__ == '__main__':
    gree_ac = GREE_AC()
    xiaomi_ac = XiaoMi_AC()

    make_cook(gree_ac)
    make_cook(xiaomi_ac)


